package com.example.administrator.rxjavarxandroid_retrofit.reject.component;

import android.app.Activity;

import com.example.administrator.rxjavarxandroid_retrofit.reject.PerActivity;
import com.example.administrator.rxjavarxandroid_retrofit.reject.moudle.ActivityModule;
import com.example.administrator.rxjavarxandroid_retrofit.mvp.view.MainActivity;

import dagger.Component;

/**
 * Created by chenboge on 2016/12/18.
 */
@PerActivity
@Component(dependencies = AppComponent.class,modules = ActivityModule.class)
public interface ActivityComponent {

    Activity getActivity();

//    void inject(MainActivity MainActivity);的意思是MainActivity中要用到这个注入器然后我们在MainActivity中对注入器进行初始化
//    DaggerActivityComponent.builder().build().inject(this); 然后Activity中所有被@Inject标记的类，都会通过ActivityComponent来进行初始化；
    void inject(MainActivity activity);

}
